package pull;

import helper.ImageData;
import helper.ImageProcessor;
import framework.filters.AbstractPullFilter;
import framework.pipes.PullPipe;

/**
 * Apply the translate operation on the given image
 * 
 * @author Wetzel & Rusch
 * 
 */
public class TranslateFilter extends AbstractPullFilter<ImageData> {
	public TranslateFilter(PullPipe<ImageData> pullPipe) {
		super(pullPipe);
	}

	@Override
	public void doIt() {
		ImageProcessor ip = ImageProcessor.getInstance();
		m_data.setRoiImage(ip.getTranslate(m_data.getRoiImage(),
				m_data.getPoint().x, m_data.getPoint().y));
	}
}
